projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbe4710
)
ngl: Always populate the glyph front cache
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 19 Mar 2021 23:13:16 +0000
(19:13 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 21 Mar 2021 20:05:10 +0000
(16:05 -0400)
There is no reason not to do this also in the
case when we upload the glyph.
gsk/ngl/gsknglglyphlibraryprivate.h
patch
|
blob
|
history
diff --git
a/gsk/ngl/gsknglglyphlibraryprivate.h
b/gsk/ngl/gsknglglyphlibraryprivate.h
index 8a2b421290fd5b801153acf5edb75ba882b2579b..5bf240e5e1fa32bae13821d6d80ec98027e68c44 100644
(file)
--- a/
gsk/ngl/gsknglglyphlibraryprivate.h
+++ b/
gsk/ngl/gsknglglyphlibraryprivate.h
@@
-108,6
+108,8
@@
gsk_ngl_glyph_library_lookup_or_add (GskNglGlyphLibrary *self,
GskNglGlyphKey *k = g_slice_copy (sizeof *key, key);
g_object_ref (k->font);
gsk_ngl_glyph_library_add (self, k, out_value);
+ self->front[front_index].key = *key;
+ self->front[front_index].value = *out_value;
}
return GSK_NGL_TEXTURE_ATLAS_ENTRY_TEXTURE (*out_value) != 0;